package com.lhd.struct.adapter.object_adapter;

/**
 * @Author: liuhd
 * @Date: 2024/10/28 15:55
 * @Description: 适配器
 */
public class SDAdapter implements SDCard {
    private TFCard tfCard;
    public SDAdapter(TFCard tfCard){
        this.tfCard = tfCard;
    }
    @Override
    public String readSD() {
        System.out.println("SDAdapter.readSD");
        return tfCard.readTF();
    }

}
